<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><%= page_title %></title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <%= meta_tag 'ICBM', config_value(:geourl_location)  %>
  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<%= server_url_for :controller => 'xml', :action => 'rsd' %>" />
  <%= auto_discovery_link_tag :rss, :controller => 'xml', :action => 'rss' %>
  <%= stylesheet_link_tag "/stylesheets/theme/azure" %>
  <%= stylesheet_link_tag "/stylesheets/theme/local" %>
  <%= javascript_include_tag "cookies" %>
  <%= javascript_include_tag "prototype" %>
  <%= javascript_include_tag "effects" %>
  <%= javascript_include_tag "typo" %>
  <script type="text/javascript"><%= @content_for_script %></script>
</head>
<body>
  <div id="container" class="clearfix">
      <div id="header">
        <div id="logo">
          <h1 id="sitename"><%= link_to config_value('blog_name'), { :controller => '/' } %></h1>
          <h2 id="subtitle"><%= config_value('blog_subtitle') %></h2>
        </div>
      </div>
      
      <div id="search"> <%= render :partial => "shared/search" %></div>
      
      <div id="content" class="clearfix">
        <div id="main">
          <%= @content_for_layout %>
          <%= javascript_tag "show_dates_as_local_time()" %>
        </div>
        <div id="sidebar">
          
            <div id="search-results"></div>

            <%= render_component(:controller => 'sidebars/sidebar', :action => 'display_plugins') %>
            <%= link_to image_tag("powered.gif"),  "http://typo.leetsoft.com/", {:class => "powered" } %>
            </div>

            <br clear="all" />
      </div>
      <div id="footer">
        <ul>
          <li><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a></li>
          <li><a href="http://jigsaw.w3.org/css-validator/validator?uri=<%= server_url_for :controller => 'articles' %>">Valid CSS</a></li>
        </ul>
      </div>
  </div>
</body>
</html>
